import request from '@/api/request.js'

// 保存消息
export function saveMessage(messageDTO) {
	return request({
		url: '/message/saveMessage',
		method: 'post',
		headers: {
		  isToken: "0"
		},
		data: messageDTO
	})
}


// 根据dialogueId查询消息
export function getMessageByDialogueId(dialogueId) {
	return request({
		url: '/message/getMessages?dialogueId=' + dialogueId,
		method: 'get',
		headers: {
		  isToken: "0"
		}
	})
}
 